package Test;

import java.util.Scanner;

/**
 * @author feng
 * @Date 2021/12/24 9:59
 * //判断是否为子串
 */
public class TestSixTwo {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入字符串");
        String s = sc.nextLine();
        String s1 = sc.nextLine();
        boolean sub = sub(s, s1);
        System.out.println(sub);
    }

    public static boolean sub(String a, String b) {
        if (a.contains(b) || b.contains(a)) {
            return true;
        }
        return false;
    }

}